package ch05.ioc;

public class Person {
    private String name ;
    private String words ;

    public Person(){
        System.out.println("person的无参构造！");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("person setName......");
        this.name = name;
    }

    public String getWords() {
        return words;
    }

    public void setWords(String words) {
        this.words = words;
    }
    public  void say(){
        System.out.println(name + " 说: " + words);
    }
}
